home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / os2tools / aping / cpiccmc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-15  |  5.3 KB  |  156 lines

  1. /*****************************************************************************
  2.  *
  3.  *  MODULE NAME: CPICCMC.H
  4.  *
  5.  *  COPYRIGHTS:
  6.  *             This module contains code made available by IBM
  7.  *             Corporation on an AS IS basis.  Any one receiving the
  8.  *             module is considered to be licensed under IBM copyrights
  9.  *             to use the IBM-provided source code in any way he or she
  10.  *             deems fit, including copying it, compiling it, modifying
  11.  *             it, and redistributing it, with or without
  12.  *             modifications.  No license under any IBM patents or
  13.  *             patent applications is to be implied from this copyright
  14.  *             license.
  15.  *
  16.  *             A user of the module should understand that IBM cannot
  17.  *             provide technical support for the module and will not be
  18.  *             responsible for any consequences of use of the program.
  19.  *
  20.  *             Any notices, including this one, are not to be removed
  21.  *             from the module without the prior written consent of
  22.  *             IBM.
  23.  *
  24.  *  AUTHOR:    Peter J. Schwaller
  25.  *             VNET:     PJS at RALVM6           Tie Line: 444-4376
  26.  *             Internet: pjs@ralvm6.vnet.ibm.com     (919) 254-4376
  27.  *
  28.  *  FUNCTION:  Attempts to isolate the program from differences among
  29.  *             CPI-C include files.
  30.  *
  31.  *  AVAILABILITY:
  32.  *             These sample programs and source are also available on
  33.  *             CompuServe through the APPC Information Exchange.  To get
  34.  *             to the APPC forum just type 'GO APPC' from any CompuServe
  35.  *             prompt.  The samples are available in the Sample Programs
  36.  *             library section.  Just search on the keyword CPICPGMS to
  37.  *             find all the samples in this series.
  38.  *
  39.  *             Updates for the sample programs and support for many more
  40.  *             CPI-C platforms will also be made available on CompuServe.
  41.  *
  42.  *****************************************************************************/
  43.  
  44. #ifndef INCL_CPICCMC
  45. #define INCL_CPICCMC
  46.  
  47.  
  48. #ifdef MVS
  49. #include "atbcmc.h"
  50. #define CM_INT32 signed long int
  51. typedef CM_INT32 CM_CONVERSATION_TYPE;
  52. typedef CM_INT32 CM_DATA_RECEIVED_TYPE;
  53. typedef CM_INT32 CM_DEALLOCATE_TYPE;
  54. typedef CM_INT32 CM_ERROR_DIRECTION;
  55. typedef CM_INT32 CM_FILL;
  56. typedef CM_INT32 CM_PREPARE_TO_RECEIVE_TYPE;
  57. typedef CM_INT32 CM_RECEIVE_TYPE;
  58. typedef CM_INT32 CM_REQUEST_TO_SEND_RECEIVED;
  59. typedef CM_INT32 CM_RETURN_CODE;
  60. typedef CM_INT32 CM_RETURN_CONTROL;
  61. typedef CM_INT32 CM_SEND_TYPE;
  62. typedef CM_INT32 CM_STATUS_RECEIVED;
  63. typedef CM_INT32 CM_SYNC_LEVEL;
  64. #define CM_PTR   *
  65. #define CM_SYNC_LVL_NOT_SUPPORTED_LU     (CM_RETURN_CODE) 7
  66. #else
  67. #ifdef OS400
  68. #define cminit CMINIT
  69. #define cmaccp CMACCP
  70. #define cmallc CMALLC
  71. #define cmcfm  CMCFM
  72. #define cmcfmd CMCFMD
  73. #define cmdeal CMDEAL
  74. #define cmecs  CMECS
  75. #define cmect  CMECT
  76. #define cmemn  CMEMN
  77. #define cmepln CMEPLN
  78. #define cmesl  CMESL
  79. #define cmflus CMFLUS
  80. #define cminit CMINIT
  81. #define cmptr  CMPTR
  82. #define cmrcv  CMRCV
  83. #define cmrts  CMRTS
  84. #define cmsct  CMSCT
  85. #define cmsdt  CMSDT
  86. #define cmsed  CMSED
  87. #define cmsend CMSEND
  88. #define cmserr CMSERR
  89. #define cmsf   CMSF
  90. #define cmsld  CMSLD
  91. #define cmsmn  CMSMN
  92. #define cmspln CMSPLN
  93. #define cmsptr CMSPTR
  94. #define cmsrc  CMSRC
  95. #define cmsrt  CMSRT
  96. #define cmssl  CMSSL
  97. #define cmsst  CMSST
  98. #define cmstpn CMSTPN
  99. #define cmtrts CMTRTS
  100. #endif
  101. #ifdef AIX
  102. #define CM_INT32 signed long int
  103. #endif
  104. #include <cmc.h>
  105. #endif
  106. #if defined(OS400) || defined(MVS)
  107. typedef CM_INT32 CM_CONVERSATION_STATE;
  108. /*  conversation_state values  */
  109.  
  110. #define CM_INITIALIZE_STATE              (CM_CONVERSATION_STATE) 2
  111. #define CM_SEND_STATE                    (CM_CONVERSATION_STATE) 3
  112. #define CM_RECEIVE_STATE                 (CM_CONVERSATION_STATE) 4
  113. #define CM_SEND_PENDING_STATE            (CM_CONVERSATION_STATE) 5
  114. #define CM_CONFIRM_STATE                 (CM_CONVERSATION_STATE) 6
  115. #define CM_CONFIRM_SEND_STATE            (CM_CONVERSATION_STATE) 7
  116. #define CM_CONFIRM_DEALLOCATE_STATE      (CM_CONVERSATION_STATE) 8
  117. #define CM_DEFER_RECEIVE_STATE           (CM_CONVERSATION_STATE) 9
  118. #define CM_DEFER_DEALLOCATE_STATE        (CM_CONVERSATION_STATE) 10
  119. #define CM_SYNC_POINT_STATE              (CM_CONVERSATION_STATE) 11
  120. #define CM_SYNC_POINT_SEND_STATE         (CM_CONVERSATION_STATE) 12
  121. #define CM_SYNC_POINT_DEALLOCATE_STATE   (CM_CONVERSATION_STATE) 13
  122.  
  123. /* return codes */
  124. #define CM_TAKE_BACKOUT                  (CM_RETURN_CODE) 100
  125. #define CM_DEALLOCATED_ABEND_BO          (CM_RETURN_CODE) 130
  126. #define CM_DEALLOCATED_ABEND_SVC_BO      (CM_RETURN_CODE) 131
  127. #define CM_DEALLOCATED_ABEND_TIMER_BO    (CM_RETURN_CODE) 132
  128. #define CM_RESOURCE_FAIL_NO_RETRY_BO     (CM_RETURN_CODE) 133
  129. #define CM_RESOURCE_FAILURE_RETRY_BO     (CM_RETURN_CODE) 134
  130. #define CM_DEALLOCATED_NORMAL_BO         (CM_RETURN_CODE) 135
  131.  
  132. /*  sync_level values  */
  133. #define CM_SYNC_POINT                    (CM_SYNC_LEVEL) 2
  134. #endif
  135.  
  136.  
  137. #if defined(CM_OS2) || defined(CM_DOS) || defined(CM_VM)
  138. #define SUPPORTS_SETTING_SECURITY
  139. #endif
  140.  
  141.  
  142. #if defined(OS2) || defined(FAPI) || defined(DOS) || defined(OS2_20) \
  143.     || defined (AIX)
  144. #define PLN_COULD_REQUIRE_LOWERCASE
  145. #endif
  146.  
  147. #if defined(OS400) || defined(MVS)
  148. #define  ECS_NOT_SUPPORTED
  149. #endif
  150.  
  151. #if defined(OS400)
  152. #define  ECT_NOT_SUPPORTED
  153. #endif
  154. #endif
  155.  
  156.